package collection.set;

import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @author cyt
 * @create 2020-10-03 下午 10:51
 */
public class LinkedSetDemo {
    public static void main(String[] args) {
        HashSet<Integer> set = new HashSet<>();
        set.add(2);
        set.add(2);

        Iterator<Integer> iterator = set.iterator();
        iterator.next();
    }
}
